﻿using AventStack.ExtentReports;

namespace Ro.Common.RoInterface
{
    /// <summary>
    /// 接口定义
    /// ExtentReport
    /// </summary>
    public interface IRoExtentReport
    {
        /// <summary>
        /// 初始化ExtentReport
        /// </summary>
        /// <param name="filename">文件名称</param>
        void InitExtentReports(string filename);

        /// <summary>
        /// 开始测试记录
        /// </summary>
        /// <param name="casename">测试名称</param>
        /// <param name="testdescription">测试描述</param>
        void StartExtentReports(string casename, string testdescription);

        /// <summary>
        /// 结束测试
        /// </summary>
        void EndExtentReports();

        /// <summary>
        /// 添加测试结果
        /// </summary>
        /// <param name="logStatus">测试结果</param>
        /// <param name="stepdetail">测试详情</param>
        void AddTestsResult(bool logStatus, string stepdetail);

        /// <summary>
        /// 添加测试用例的子节点
        /// </summary>
        /// <param name="logStatus">测试结果</param>
        /// <param name="stepname">步骤名称</param>
        /// <param name="stepdetail">测试详情</param>
        void AddTestsChildNode(Status logStatus, string stepname, string stepdetail);


    }
}
